package me.stone.stanimeclient.util

import android.content.res.Resources
import android.util.DisplayMetrics
import android.util.TypedValue

//private val metrics: DisplayMetrics
//    get() = Resources.getSystem().displayMetrics
//
//private fun dimen(unit: Int, value: Float) = TypedValue.applyDimension(unit, value, metrics)
//
//val Float.dip
//    get() = dimen(TypedValue.COMPLEX_UNIT_DIP, this)
//
//val Float.sp
//    get() = dimen(TypedValue.COMPLEX_UNIT_SP, this)
